//
//  Channel.h
//
// RE:: comments
// Channel class interface
//
// Purely a data container
// Could have been incorporated into Feed class, but kept separate for easier parsing ---
//    iVars here are named to allow for a Key-Value assignment "trick":
//       if a Channel object "responds" to the name of one of its iVars
//       (i.e., if it has a property of that name, and therefore a defaultly-named iVar accessor)
//       then parser knows that we are looking to fill in a value for that iVar from data parsed from
//       the XML glop we get from the Feed

#import <Foundation/Foundation.h>


@interface Channel : NSObject {

	// 1. DECLARE the iVars
	NSString *title;
	NSString *link;
	NSString *description;
}

// 2. Tell the system that these iVars are PROPERTYs (...and therefore each will have a conventionally named
//       default mutator / accessor, such as "setTitle" and "title" for the title Property)
//    --> Making these Property's allows access to the default accessor through the dot notation;
//           for example, self.description invokes the description accessor, just as would [self description].
//           This is *not* the same as C++ field selection within a structure! 
//           A method fn is called for the dot notation in Obj-C!
@property (nonatomic, retain) NSString *title;
@property (nonatomic, retain) NSString *link;
@property (nonatomic, retain) NSString *description;


@end
